<template>
  <div>
    <table class="table1 owntable mb20 tableLayout" border="0" cellspacing="0" cellpadding="1" width="100%">
      <tr>
        <td width="150">成品检验管理编号</td>
        <td>{{ item.number }}</td>
        <td width="150">产品名称</td>
        <td>{{ item.productName }}</td>
      </tr>
      <tr>
        <td>产品规格</td>
        <td>{{ item.productSku }}</td>
        <td>产品代码</td>
        <td>{{ item.productCode }}</td>
      </tr>
      <tr>
        <td>生产批号</td>
        <td>{{ item.batchNumber }}</td>
        <td>合格数量</td>
        <td>{{ item.qualifiedQty }}</td>
      </tr>
      <tr>
        <td>不合格数量</td>
        <td>{{ item.failedQty }}</td>
        <td>检验部门</td>
        <td>{{ item.manageDeptName }}</td>
      </tr>
      <tr>
        <td>检验员</td>
        <td>{{ item.manageUserName }}</td>
        <td>检验日期</td>
        <td>{{ item.examinDate }}</td>
      </tr>
      <tr>
        <td>编制部门</td>
        <td colspan="3">{{ item.createDeptName }}</td>
      </tr>
    </table>

    <table class="table1 owntable mb20" border="0" cellspacing="0" cellpadding="1" width="100%" v-if="item.deviceList && item.deviceList.length != 0">
      <tr>
        <td>使用设备名称</td>
        <td class="gray_bg">设备型号</td>
        <td>设备编号</td>
      </tr>
      <tr v-for="(v, i) in item.deviceList" :key="i">
        <td class="white_bg">{{ v.deviceName }}</td>
        <td class="white_bg">{{ v.deviceModel }}</td>
        <td class="white_bg">{{ v.deviceNumber }}</td>
      </tr>
    </table>
  </div>
</template>

<script>
export default {
  props: {
    item: {}
  }
};
</script>

<style></style>
